package payment.mobilepos.unionpay.com.demo;

import android.app.Application;
import android.content.Context;

import com.sdk.ActivityLifecycle;
import com.sdk.SpeechConfig;

public class MyApplication extends Application {
    static MyApplication app;

    @Override
    public void onCreate() {
        SpeechConfig speechConfig = new SpeechConfig(this);
        super.onCreate();
        app = MyApplication.this;
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);

        registerActivityLifecycleCallbacks(ActivityLifecycle.getInstance());
    }

    public static Application getInstance() {
        return app;
    }
}
